<!DOCTYPE html>
<html>
  <head>
    <title>{$data.name}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<meta charset="utf-8">
    <!-- Bootstrap -->
	<link href="__PUBLIC__/addon/weixin/dist/style/weui.min.css" rel="stylesheet">
	
    <link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/reset.css">
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="__PUBLIC__/addon/malltemplatehome/js/jquery-1.11.3.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="__PUBLIC__/addon/malltemplatehome/js/bootstrap.js"></script>
	<!--购物车js代码-->
	<script src="js/simpleCart.js"></script>
	<!--自己的css样式-->
	<link rel="stylesheet" href="__PUBLIC__/addon/malltemplatehome/CSS/store.css">
	
	<script src="http://static.hongdayun.com/public/simplecartjs/3.0.5/simpleCart.min.js"></script>
	
	<script>
		simpleCart.currency({
			code: "RMB" ,
			name: "Chinese Yuan" ,
			symbol: "￥" ,
			delimiter: "" , 
			decimal: "." , 
			after: false ,
			accuracy: 2
		});
		simpleCart({
			cartColumns: [
				{ view:"image",attr: "img" , label: "" } ,
				{ attr: "name" , label: " " } ,
				{ attr: "price" , label: " ", view: 'currency' } ,
				{ view: "decrement" , label: false , text: "-" } ,
				{  view: "input" ,attr: "quantity" , label: " " } ,
				{ view: "increment" , label: false , text: "+" } ,
				{ attr: "total" , label: " ", view: 'currency' } ,
				//{ view: "remove" , text: "取消" , label: false }
			]
		});
		
		simpleCart({
		checkout: { 
			type: "SendForm" , 
			url: "__APP__/Home/Order/Create/Addon/Mall.html" ,

			method: "POST" , 

			} 
		});
		
	</script>
	
  </head>
  <body>
  <header id="header">
		<div class="row shopping">
			<div class="col-xs-2 col-sm-2">
				<a href="__APP__/Home/Mall/Index/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon58.jpg" width="100%"></a>
			</div>
			<div class="col-xs-8 col-sm-8">
				公告
			</div>
			<div class="col-xs-2 col-sm-2">
			</div>
		</div>
	</header>
	<br>
	<br>
	<!--nav导航-->
	<div id="list-navb">
		<div class="row">
			<article class="weui_article">
			   <center><h1>{$data.name}</h1></center>
			   <section>
				   <h2 class="title">发布时间：{$data.time|date="Y-m-d",###}</h2>
				   <section>
				
					   <p>{$data.value}</p>
				   </section>
				   
			   </section>
			</article>

			
		</div>
	</div>

	<a href="__APP__/Home/Mall/MyInfo/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon55.png" class="person"></a>
	<a href="__APP__/Home/Mall/Cart/Addon/MallTemplateHome.html"><img src="__PUBLIC__/addon/malltemplatehome/images/icon69.png" class="shop">
	<span class="sp simpleCart_quantity">0</span></a>
	<!--footer-->
	<footer id="footer">
		<div class="row">
			<div class="col-xs-6 col-sm-6 footer-left">
				<span class="simpleCart_grandTotal">0.00元</span>
				<!-- <span>免运费</span> -->
			</div>
			<div class="col-xs-6 col-sm-6 footer-right">
				<a href="__APP__/Home/Mall/Cart/Addon/MallTemplateHome.html"><span>去结算</span></a>
			</div>
		</div>
	</footer>
	<!--底部-->
	<!-- <div id="bottom">
		<div class="row">
			<div class="col-xs-4 col-sm-4">
				<img src="__PUBLIC__/addon/malltemplatehome/images/icon8.jpg">
				<p>首页</p>
			</div>
			<div class="col-xs-4 col-sm-4">
				<img src="__PUBLIC__/addon/malltemplatehome/images/icon6.jpg">
				<p>购物车</p>
			</div>
			<div class="col-xs-4 col-sm-4">
				<img src="__PUBLIC__/addon/malltemplatehome/images/icon7.jpg">
				<p>我的</p>
			</div>
		</div>
	</div> -->
	<!-- <script>
		$(function(){
			$('.navc p').bind('click',function(){
				//tab选项卡
				$(this).addClass('hover').siblings().removeClass('hover')
				var num=$(this).index();
				$('.contentc .contentb>div').eq(num).attr('class','show').siblings().attr('class','hide')
			})	
				//价格
				$('.pic2 .price div>p').bind('click',function(){
				
					var oldNum=$(this).next().find('input').val();
					var newNum=Number(oldNum)+1;
					$(this).next().find('input').val(newNum)
					
					$(this).attr('class','hide').siblings().attr('class','show');
					$('.sp').addClass('show')
					var oldText=$('.sp').text()
					console.log(oldText)
					var newText=Number(oldText)+1
					$('.sp').text(newText)
					//价格
					total()
					
					//购物车数量代码
					content();
				})
				$('.pic2 .price div>div span:odd').bind('click',function(){
					var oldNum=$(this).prev().val();
					console.log(oldNum)
					var newNum=Number(oldNum)+1;
					$(this).prev().val(newNum)
					
					var oldText=$('.sp').text()
					var newText=Number(oldText)+1
					$('.sp').text(newText)
					total()
					
					//购物车数量代码
					content();
				})
				$('.pic2 .price div>div span:even').bind('click',function(){
					var oldNum=$(this).next().val()
					var newNum=Number(oldNum)-1;
					if(newNum<1){
						$(this).parent().prev().attr('class','show');
						$(this).parent().attr('class','hide');
						$(this).next().val(0)
						total()
						
						//购物车数量代码
						var aa=new content();
						aa.myItem.decrement(2);
						//aa.myItem.remove();//移除购物车代码
						console.log(aa.myItem.quantity())
					}else{
						$(this).next().val(newNum)
						total()
						//购物车数量代码
						var aa=new content();
						aa.myItem.decrement(2);
						//aa.myItem.remove();//移除购物车代码
						console.log(aa.myItem.quantity())
						
					}
					
					var oldText=$('.sp').text()
					var newText=Number(oldText)-1
					if(newText<1){
						$('.sp').text(0)
						$('.sp').removeClass('show')
					}else{
						$('.sp').text(newText)
					}

				})
				/*合计*/
					function total(){
						var tatal=0;
						$('.price').each(function(){
							//单价
							var aa=$(this).find('.danjia').text()
							var shulang=aa.substr(1)
							//数量
							var bb=$(this).find('input').val()
							tatal+=shulang*Number(bb)
							$(".footer-left span").eq(0).text(tatal.toFixed(2))
						})
					}
					
		})
	</script> -->
	<!-- <script>
		/*购物车*/
		function content(){
			this.myItem=simpleCart.add({name:'蔬菜',price:'36',img:'__PUBLIC__/addon/malltemplatehome/images/icon50.jpg',goods_id:'1',quantity:1,is_buy:1,purchasing:'限购'})
			
		}
		
	</script> -->
	 <script src="http://static.hongdayun.com/public/layer/2.2/layer.js"></script>
	<script src="http://static.hongdayun.com/public/layDate/1.1/laydate.js"></script>
	<script>
					
				//发送当前页面信息
				function notice(msg){  
					layer.msg(msg);
				}	
						
						
		</script>

  </body>
</html>